package com.javatraining.corejava.homework.encapsulation;


public class CarDemo {
	
	public static void main(String[] args) {

		Car car1 = new Car("Honda", "Accord", 2013);
		Car car2 = new Car("Toyota", "Camry", 2011);
		Car car3 = new Car("Mercedez", "Benz", 2014);
		Car car4 = new Car("Toyota", "Camry", 2013);
		
		System.out.println( "car1 = " + car1);
		System.out.println( "car1 = " + car2);
		System.out.println( "car1 = " + car3);
		System.out.println( "car1 = " + car4);
		
		System.out.println("Car1 Make = " + car1.getMake());
		System.out.println("Car1 Model = " +car1.getModel());
		System.out.println("Car1 Year = " +car1.getYear());

}
	
}
